<template>
  <div id="achievement">
    <c-title :hide="false" text="业绩明细"></c-title>
    <d-list :loading="loading" :finished="finished" @load="onLoad">
      <div class="achievement-box" v-for="(item,index) in achievementList" :key="index">
        <div>
          <span>{{item.order_sn}}</span>
          <span class="cash">+￥{{item.group_amount}}</span>
        </div>
        <div class="date">{{item.finish_time}}</div>
      </div>
    </d-list>
  </div>
</template>

<script>
import achievement_controller from "./achievement_controller";

export default achievement_controller;
</script>

<style lang="scss" rel="stylesheet/scss" scoped>
.achievement-box {
  background: white;
  padding: 0 0.8rem 0.8rem 0.8rem;
  margin-bottom: 0.4rem;

  div {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0 0 0;
    line-height: 1;
    font-size: 0.75rem;
  }

  .date {
    color: #bcbcbc;
  }

  .cash {
    color: #ff2c29;
  }
}
</style>
